import request from '@/utils/request'

// 查询dialog列表
export function listDialog(query) {
  return request({
    url: '/system/dialog/list',
    method: 'get',
    params: query
  })
}

// 查询dialog详细
export function getDialog(id) {
  return request({
    url: '/system/dialog/' + id,
    method: 'get'
  })
}

// 新增dialog
export function addDialog(data) {
  return request({
    url: '/system/dialog',
    method: 'post',
    data: data
  })
}

// 修改dialog
export function updateDialog(data) {
  return request({
    url: '/system/dialog',
    method: 'put',
    data: data
  })
}

// 删除dialog
export function delDialog(id) {
  return request({
    url: '/system/dialog/' + id,
    method: 'delete'
  })
}
